//
//  VipInfoOutWorkView.m
//  fitnessmanage
//
//  Created by 众拳科技 on 2017/10/27.
//  Copyright © 2017年 zongquankeji. All rights reserved.
//

#import "VipInfoOutWorkView.h"

@implementation VipInfoOutWorkView

-(id)initWithFrame:(CGRect)frame{
    

    self = [super initWithFrame:frame];
    
    if (self) {
        
        
        self.backgroundColor = CSWhiteColor;
        
        /**
         出勤数
         */
        UILabel *countLabel = [[UILabel alloc] init];
        countLabel.text = @"0";
        countLabel.font = [UIFont boldSystemFontOfSize:24.0];
        [self addSubview:countLabel];
        self.countLabel = countLabel;
        
                        
        /**
         出勤
         */
        UILabel *outWorkLabel = [[UILabel alloc] init];
        outWorkLabel.font = MidFont;
        outWorkLabel.textColor = CSColorFromRGB(0x7a7a7a);
        [self addSubview:outWorkLabel];
        self.outWorkLabel = outWorkLabel;
        
       
        [self setConstraints];
    }
    
    return self;
}

-(void)setConstraints{
    
    /**
     出勤数
     */
    [self.countLabel mas_remakeConstraints:^(MASConstraintMaker *make) {
       
        make.top.mas_equalTo(self).offset(10);
        
        make.centerX.mas_equalTo(self);
    }];
    
    /**
     出勤
     */
    [self.outWorkLabel mas_remakeConstraints:^(MASConstraintMaker *make) {
        
        make.top.mas_equalTo(self.countLabel.mas_bottom).offset(10);
        
        make.centerX.mas_equalTo(self);
        
        make.bottom.mas_equalTo(self).offset(-10);
    }];
    
}

@end
